import { createApp } from "vue";
import App from "./App.vue";
import { initRouter } from "./router";
import "./assets/style.css";
import "element-plus/es/components/message/style/css";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import { initStore } from "./store/index";

const app = createApp(App);

// 注册所有icon
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

// 初始化路由
initRouter(app);
// 初始化store
initStore(app);
app.mount("#app");
